﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Mindfor.Web.Modules.Catalog
{
	/// <summary>
	/// Represents prodcut category and contains information about deep-level.
	/// </summary>
	public class CategoryLeveled : Category
	{
		/// <summary>
		/// Gets or sets category deep-level in tree.
		/// </summary>
		public int Level { get; set; }

		/// <summary>
		/// Initializes new instance.
		/// </summary>
		public CategoryLeveled()
		{
		}

		/// <summary>
		/// Initializes new instance with values from another.
		/// </summary>
		/// <param name="cat">Category to copy values from.</param>
		/// <param name="level">Category level.</param>
		public CategoryLeveled(Category cat, int level)
		{
			cat.CopyPropertyValuesTo(this);
			Level = level;
		}
	}
}